package com.kymatrix.mpo.plus.bpm.server.model.form.expression;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

@ApiModel(value = "管理后台 - BPM 流程表达式修改 Request")
@Data
@Accessors(chain=true)
public class UpdateBpmProcessExpressionReq {

    @ApiModelProperty(value = "编号", example = "3870")
    @NotEmpty(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "表达式名字", example = "李四")
    @NotEmpty(message = "表达式名字不能为空")
    private String name;

    @ApiModelProperty(value = "表达式状态 EnableType", example = "1")
    @NotNull(message = "表达式状态不能为空")
    private String status;

    @ApiModelProperty(value = "表达式")
    @NotEmpty(message = "表达式不能为空")
    private String expression;

}
